From: kfraser@localhost.localdomain Date: Fri, 12 Jan 2007 14:46:21 +0000 (+0000) Subject: Fix trivial bug in xentop main loop. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15405^2~23 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f48232576f48eedea9a17e1e335b3d36188c8fa7;p=xen.git Fix trivial bug in xentop main loop. Signed-off-by: Keir Fraser --- diff --git a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c index 4b610c3668..1c0d8ac63d 100644 --- a/tools/xenstat/xentop/xentop.c +++ b/tools/xenstat/xentop/xentop.c @@ -1067,9 +1067,9 @@ int main(int argc, char **argv) gettimeofday(&curtime, NULL); top(); oldtime = curtime; - sleep(delay); if ((!loop) && !(--iterations)) break; + sleep(delay); } while (1); }